#include<iostream>
#include<string>
#include<cctype>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main()
{
    string s("hello 2022,today is 1.1");
    decltype(s.size()) punct_cnt=0;//预先判断变量的类型但不初始化
    for(auto c:s)
    	if(ispunct(c))
            ++punct_cnt;
    cout<<punct_cnt<<" punctuation characters in \n"<<s<<endl;
    string x("super");
    for(auto &c:x)//修改的时候记得加取地址符号
        c=toupper(c);
        cout<<x<<endl;
    
   
}
